﻿<%@ Page Language="C#" MasterPageFile="~/Masters/Office.Master" AutoEventWireup="true"
    Codebehind="ModulePermission.aspx.cs" Inherits="THANHTUNGO.Portal.Modules.MODULE.ModulePermission" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="MainMenuGroup">
        Phân quyền</div>
    <div class="ModuleContent">
        <table id="Table1" cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td>
                    <asp:DropDownList ID="ddlRole" runat="server" AutoPostBack="True" DataSourceID="sdsRole"
                        DataTextField="Name" DataValueField="ID" OnSelectedIndexChanged="ddlRole_SelectedIndexChanged">
                    </asp:DropDownList><br />
                    <br />
                    <asp:SqlDataSource ID="sdsRole" runat="server" ConnectionString="<%$ ConnectionStrings:MSSQL %>"
                        SelectCommand="p_SYSTEM_Role_SelectAll" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="width:50%" valign="top">
                    <asp:Panel ID="pnlFunction" runat="server" Height="200px" CssClass="TextBox" ScrollBars="Auto">
                        <asp:CheckBoxList ID="chkFunction" runat="server" CellPadding="0" CellSpacing="0" DataSourceID="sdsFunction" DataTextField="Name"
                            DataValueField="ID">
                        </asp:CheckBoxList></asp:Panel>
                    <asp:SqlDataSource ID="sdsFunction" runat="server" ConnectionString="<%$ ConnectionStrings:MSSQL %>"
                        SelectCommand="p_SYSTEM_Function_SelectBy_GeneralModuleDefinitionID" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:Parameter Name="GUID" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
        <br />
        <hr />
        <br />
        <asp:LinkButton ID="btnSave" runat="server" Text="<%$ Resources:Strings, BUTTON_SAVE %>"
            OnClick="btnSave_Click"></asp:LinkButton>
        <asp:LinkButton ID="btnCancel" runat="server" Text="<%$ Resources:Strings, BUTTON_GOBACK %>"></asp:LinkButton><br /><br />
    </div>
</asp:Content>
